package com.ruoyi.pcwl.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Date;
import com.ruoyi.pcwl.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;


/**
 * 商铺详情信息
 */

@ApiModel("商铺详情信息")
public class PcwlShopDetails implements Serializable {


	/**
	 * 商铺详情id
	 */

	@ApiModelProperty("商铺详情id")
	@JsonSerialize(using= ToStringSerializer.class)
	private Long id;

	/**
	 * 商铺id
	 */

	@ApiModelProperty(value = "商铺id",required = true)
	@JsonSerialize(using= ToStringSerializer.class)
	private Long shopId;

	/**
	 * 标签
	 */

	@ApiModelProperty("标签")
	private String tags;

	/**
	 * 热度
	 */

	@ApiModelProperty("热度")
	private Integer hot;

	/**
	 * 文件ID
	 */

	@ApiModelProperty("文件ID")
	private Long mediaFileId;

	/**
	 * 文件访问地址
	 */

	@ApiModelProperty("文件访问地址")
	private String url;

	/**
	 * 上传人
	 */

	@ApiModelProperty("上传人")
	private String username;

	/**
	 * 上传时间
	 */

	@ApiModelProperty("上传时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createDate;

	/**
	 * 修改时间
	 */

	@ApiModelProperty("修改时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date changeDate;

	/**
	 * 状态,1:正常，0:不展示
	 */

	@ApiModelProperty("状态,1:正常，0:不展示")
	private String status;

	/**
	 * 备注
	 */

	@ApiModelProperty("备注")
	private String remark;


	public void setId(Long id){
		this.id = id;
	}

	public Long getId(){
		return this.id;
	}

	public void setShopId(Long shopId){
		this.shopId = shopId;
	}

	public Long getShopId(){
		return this.shopId;
	}

	public void setTags(String tags){
		this.tags = tags;
	}

	public String getTags(){
		return this.tags;
	}

	public void setHot(Integer hot){
		this.hot = hot;
	}

	public Integer getHot(){
		return this.hot;
	}

	public void setMediaFileId(Long mediaFileId){
		this.mediaFileId = mediaFileId;
	}

	public Long getMediaFileId(){
		return this.mediaFileId;
	}

	public void setUrl(String url){
		this.url = url;
	}

	public String getUrl(){
		return this.url;
	}

	public void setUsername(String username){
		this.username = username;
	}

	public String getUsername(){
		return this.username;
	}

	public void setCreateDate(Date createDate){
		this.createDate = createDate;
	}

	public Date getCreateDate(){
		return this.createDate;
	}

	public void setChangeDate(Date changeDate){
		this.changeDate = changeDate;
	}

	public Date getChangeDate(){
		return this.changeDate;
	}

	public void setStatus(String status){
		this.status = status;
	}

	public String getStatus(){
		return this.status;
	}

	public void setRemark(String remark){
		this.remark = remark;
	}

	public String getRemark(){
		return this.remark;
	}

	@Override
	public String toString (){
		return "商铺详情id:"+(id == null ? "空" : id)+"，商铺id:"+(shopId == null ? "空" : shopId)+"，标签:"+(tags == null ? "空" : tags)+"，热度:"+(hot == null ? "空" : hot)+"，文件ID:"+(mediaFileId == null ? "空" : mediaFileId)+"，文件访问地址:"+(url == null ? "空" : url)+"，上传人:"+(username == null ? "空" : username)+"，上传时间:"+(createDate == null ? "空" : DateUtil.formatDateTime2String(createDate))+"，修改时间:"+(changeDate == null ? "空" : DateUtil.formatDateTime2String(changeDate))+"，状态,1:正常，0:不展示:"+(status == null ? "空" : status)+"，备注:"+(remark == null ? "空" : remark);
	}
}
